package org.example.springbootwebexample.service;


import org.example.springbootwebexample.pojo.Emp;
import org.example.springbootwebexample.pojo.PageBean;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;


@Service
public interface EmpService {

    //模糊查询
    PageBean page  (Integer page, Integer pageSize, String name, Short gender, LocalDate begin, LocalDate end);

    //根据id 批量删除员工
    void delete(List<Integer> ids);

    //新增员工
    void insert(Emp emp);

    //根据id 查询员工
    Emp selectById(Integer id);

    void update(Emp emp);


    //员工登录
    Emp login(Emp emp);


}

